def in_box(p_x, p_y, box_x, box_y, box_width, box_height) -> bool:
    return box_x <= p_x <= box_x + box_width and box_y <= p_y <= box_y + box_height
